package the.workshop.bu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

/**
 * <p>
 * 公司法人
 * </p>
 *
 * @author lei.liu
 * @since 2020-07-07
 */
@Data
@TableName("bu_customer_legal")
public class CustomerLegal extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 客户ID，主键
     */
    @TableId(value = "customer_id", type = IdType.NONE)
    private Integer customerId;

    /**
     * 配偶姓名
     */
    @TableField("spouse_name")
    private String spouseName;

    /**
     * 配偶电话号码
     */
    @TableField("spouse_tel")
    private String spouseTel;

    /**
     * 配偶身份证号码
     */
    @TableField("spouse_id_number")
    private String spouseIdNumber;

    /**
     * 配偶是否知晓
     */
    @TableField("spouse_is_know")
    private Integer spouseIsKnow;

    /**
     * 是否有房产证
     */
    @TableField("house_is_cert")
    private Integer houseIsCert;

    /**
     * 房产支付方式。全款、贷款
     */
    @TableField("house_payment")
    private String housePayment;

    /**
     * 房产地址
     */
    @TableField("house_address")
    private String houseAddress;

    /**
     * 房产价格
     */
    @TableField("house_price")
    private String housePrice;

    /**
     * 房产性质
     */
    @TableField("house_nature")
    private String houseNature;

    /**
     * 房产抵押银行
     */
    @TableField("house_mortgage_bank")
    private String houseMortgageBank;

    /**
     * 房产抵押到期日期
     */
    @TableField("house_mortgage_due_date")
    private Date houseMortgageDueDate;

    /**
     * 车辆支付方式。全款、贷款
     */
    @TableField("car_payment")
    private String carPayment;

    /**
     * 车辆品牌
     */
    @TableField("car_brand")
    private String carBrand;

    /**
     * 车辆行驶里程
     */
    @TableField("car_mileage")
    private String carMileage;

    /**
     * 车辆年限
     */
    @TableField("car_age_limit")
    private Integer carAgeLimit;

    /**
     * 车辆价格
     */
    @TableField("car_price")
    private String carPrice;

    /**
     * 工资
     */
    @TableField("salary")
    private String salary;

    /**
     * 工资连续月份
     */
    @TableField("salary_month_count")
    private String salaryMonthCount;

    /**
     * 是否有社保
     */
    @TableField("is_social_insurance")
    private Integer isSocialInsurance;

    /**
     * 是否有商业保险
     */
    @TableField("is_busi_insurance")
    private Integer isBusiInsurance;

    /**
     * 是否有公积金
     */
    @TableField("is_fund")
    private Integer isFund;

    /**
     * 保险公司1
     */
    @TableField("insurance_company1")
    private Integer insuranceCompany1;

    /**
     * 保险费用1
     */
    @TableField("insurance_fee1")
    private Integer insuranceFee1;

    /**
     * 保险公司2
     */
    @TableField("insurance_company2")
    private Integer insuranceCompany2;

    /**
     * 保险费用2
     */
    @TableField("insurance_fee2")
    private Integer insuranceFee2;

    @TableField("contact1_name")
    private String contact1Name;
    @TableField("contact1_tel")
    private String contact1Tel;
    @TableField("contact1_relation")
    private String contact1Relation;

    @TableField("contact2_name")
    private String contact2Name;
    @TableField("contact2_tel")
    private String contact2Tel;
    @TableField("contact2_relation")
    private String contact2Relation;

    @Override
    public String toString() {
        return "CustomerLegal{" +
            ", customerId=" + customerId +
            ", spouseName=" + spouseName +
            ", spouseTel=" + spouseTel +
            ", spouseIdNumber=" + spouseIdNumber +
            ", spouseIsKnow=" + spouseIsKnow +
            ", houseIsCert=" + houseIsCert +
            ", housePayment=" + housePayment +
            ", houseAddress=" + houseAddress +
            ", housePrice=" + housePrice +
            ", houseNature=" + houseNature +
            ", houseMortgageBank=" + houseMortgageBank +
            ", houseMortgageDueDate=" + houseMortgageDueDate +
            ", carPayment=" + carPayment +
            ", carBrand=" + carBrand +
            ", carMileage=" + carMileage +
            ", carAgeLimit=" + carAgeLimit +
            ", carPrice=" + carPrice +
            ", salary=" + salary +
            ", salaryMonthCount=" + salaryMonthCount +
            ", isSocialInsurance=" + isSocialInsurance +
            ", isBusiInsurance=" + isBusiInsurance +
            ", isFund=" + isFund +
            ", insuranceCompany1=" + insuranceCompany1 +
            ", insuranceFee1=" + insuranceFee1 +
            ", insuranceCompany2=" + insuranceCompany2 +
            ", insuranceFee2=" + insuranceFee2 +
        "}";
    }
}
